#include "split_string_test.h"
#include "split_string.h"
#include "assert.h"
#include <iostream>

void SplitStringTest::testSplitNormal(){

	string line = "what,are,you,doing,now,?,baby,?";

	vector<string>end = split(line,',');

	vector<string>what;

	what.push_back("what");

	what.push_back("are");

	what.push_back("you");

	what.push_back("doing");

	what.push_back("now");

	what.push_back("?");

	what.push_back("baby");

	what.push_back("?");
	
	assertEqual(end, what);

	cout << "ALL RIGHT,testSplitNormal() OK!" << endl;

}

void SplitStringTest::testSplitBlank(){

	string blank = "";

	vector<string>end = split(blank, ',');

	vector<string>what;

	assertEqual(end, what);

	cout << "ALL RIGHT,testSplitBlank() OK!" << endl;

}
